using System.Drawing;
using System.Windows.Forms;

namespace MDL
{
	public class TextBoxEx : TextBox
	{
		public string PlaceHolderStr
		{
			get;
			set;
		}

		protected override void OnPaint(PaintEventArgs e)
		{
			if (!string.IsNullOrEmpty(PlaceHolderStr))
			{
				e.Graphics.DrawString(PlaceHolderStr, Font, new SolidBrush(Color.LightGray), 0f, 0f);
			}
			else
			{
				base.OnPaint(e);
			}
		}
	}
}
